module.exports = function() {
    this.check = function(req,res,next){
        if ('undefined' === (typeof req.cookies.ownuser))
        {
            res.render('login',{'title':'登录','message':'页面已经过期请重新登录'});
        }
        next();
    };
}